<template>
    <section class="screen" ref="sectionRef" v-bind="setSectionRef">
        <div class="screenIn">
          <div class="screen4_container">
            <h1>AI音乐研发介绍</h1>
            <p>G视频AI音乐模型是一款AI音乐创作应用，由G视频基于影视行业经验自主开发，它能够根据用户输入的文<br/>本提示快速生成符合影视生产内容需求、自己音乐风格喜好的高质量音乐作品。</p>
            <ul class="ai_intro">
              <li></li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
          </div>
        </div>
    </section>
  </template>
  
  <script setup>
  import { ref, onMounted } from 'vue'
  const props = defineProps({
    setSectionRef: {
      type: Function,
      required: true
    }
  });

  const sectionRef = ref(null);

  onMounted(() => {
    props.setSectionRef(sectionRef.value); // 将分屏 ref 传递给父组件
    console.log('分屏 4 渲染:', sectionRef.value);

  });
  </script>
  
  <style scoped>
  .screen4_container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .screen4_container h1 {
    font-size: 5rem;
  }

  .screen4_container p {
    font-size: 2rem;
    line-height: 3rem;
    text-align: center;
    margin-top: 2rem;
  }

  .ai_intro {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 4rem;
  }
  .ai_intro li {
    width: 30rem;
    height: 40rem;
    background-color: #FFF;
    border-radius: 2rem;
  }
  </style>
  